import config from "@/config"
import http from "@/utils/request"

export default {
	nft: {
		cast: {
			url: `${config.API_URL}/casting/foundryCollection`,
			name: "铸造NFT",
			post: async function (data) {
				return await http.post(this.url, data, {
					headers: {
						//'response-status': 401
					}
				});
			}
		},
		list: {
			url: `${config.API_URL}/casting/list`,
			name: "获取NFT列表",
			post: async function (data) {
				return await http.post(this.url, data);
			}
		},
		getDetailById: {
			url: `${config.API_URL}/casting/getDetailById`,
			name: "查看详情",
			post: async function (data) {
				return await http.post(this.url, data);
			}
		},
		getSeriesDetailById: {
			url: `${config.API_URL}/casting/getSeriesDetailById`,
			name: "查看系列详情",
			post: async function (data) {
				return await http.post(this.url, data);
			}
		},
		queryUnboundSingle: {
			url: `${config.API_URL}/casting/queryUnboundSingle`,
			name: "查询未绑定系列的单品",
			post: async function (data) {
				return await http.post(this.url, data);
			}
		},
		changeCollectionStatus: {
			url: `${config.API_URL}/casting/changeCollectionStatus`,
			name: "上下架藏品",
			post: async function (data) {
				return await http.post(this.url, data);
			}
		},
		castingSummary: {
			url: `${config.API_URL}/releaseManagement/castingSummary`,
			name: "查询藏品发行使用汇总",
			post: async function (data) {
				return await http.post(this.url, data);
			}
		},
	}
}
